#include "myapp.h"
#include "wstimer.h"
#define new debug_new

BEGIN_MAP_MESSAGE(MyApp,WApplication)
MAP_MESSAGE(WM_PAINT,		MyApp::OnPaint)
MAP_MESSAGE(WM_LBUTTONDOWN,	MyApp::OnClick)
MAP_MESSAGE(WM_MOUSEMOVE,	MyApp::OnMouseMove)
MAP_MESSAGE(WM_KEYDOWN,		MyApp::OnKeyDown)
MAP_MESSAGE(WM_ACTIVATEAPP,	MyApp::OnActivateApp)
END_MAP_MESSAGE()

int WINAPI WinMain(HINSTANCE hInstance,
				   HINSTANCE hPrevInstance,
                   char *lpCmdLine,
				   int nCmdShow)
{
	MyApp app(hInstance);
	app.CreateMainWindow();
//	app.CreateChild("BUTTON","ok",BS_PUSHBUTTON,100,100,80,40,1000);
	app.Excute();
	return 0;
}
